@extends('frontend.default.app')
@section('content')
    <!-- banner部分 -->
    <div class="banner news">
        <div class="title">
            <p>资源家</p>
            <p class="en">一个乐于分享的网站——分享历程，记录经验，积累点滴，实现自我...</p>
        </div>
    </div>
    <!-- main -->
    <div class="main-news">
        <div class="layui-container">
            <div class="layui-row layui-col-space20">

                @foreach( $last as $post)
                    <div class="layui-col-lg6 content">
                        <div>
                            <div class="news-img"><a href="{{route('post',$post->id)}}"><img src="{{get_thumb($post->post_thumb)}}"></a></div><div class="news-panel">
                                <strong><a href="{{route('post',$post->id)}}">{{$post->title}}</a></strong>
                                <p class="detail"><span>{{cut_str($post->post_content,0,70)}}</span><a href="{{route('post',$post->id)}}">[详细]</a></p>
                                <p class="read-push">阅读 <span>112</span>&nbsp;&nbsp;&nbsp;&nbsp;发布时间：<span>{{time_ago($post->created_at)}}</span></p>
                            </div>
                        </div>
                    </div>
                @endforeach


            </div>

        </div>
    </div>

@endsection

@section('script')
@endsection